#!/bin/bash

python setup.py build
python setup.py sdist
python setup.py sdist bdist_wheel
#source activate k2_gxl
twine upload --repository-url https://upload.pypi.org/legacy/ -u __token__ -p pypi-AgEIcHlwaS5vcmcCJDRkNGRkZWU3LTdjYjgtNDhiOS05ZDVhLWU0MGQyZGEwYzkxNgACKlszLCI0NDI2N2Q4YS04MTljLTRhOWMtYTJmZS03NGMwNzUyN2VlNWEiXQAABiDcC2nBeqc94aHK94jpn2V0q_DXgHX7T8rarWTfj4i0qA  dist/*
rm -rf build
rm -rf dist
rm -rf gxl_ai_utils.egg-info
echo "Sleeping for 3 second..."
sleep 3
echo "Continue with the next command."
# pip install --upgrade gxl_ai_utils --proxy 127.0.0.1:7890
pip cache purge
pip uninstall gxl_ai_utils
pip install --upgrade gxl_ai_utils